import { http } from '@/utils/http'

// 获取设施列表
export const getFacilitiesList = (params) => {
  return http.get('/business/TBaseEquipment/list', params)
}

// 获取入住清单列表
export const getCheckInList = (params) => {
  return http.get('/business/TBaseCheckList/ReviewData', params)
}

// 分配宿舍
export const assignDormitory = (data) => {
  return http.post('/business/TBaseCheckList/assignment', data)
}

// 切换宿舍
export const switchDormitory = (data) => {
  return http.post('/business/TBaseCheckList/changeRoom', data)
}

// 入住确认
export const checkInConfirm = (data) => {
  return http.post('/business/TBaseCheckList/confirmCheckIn', data)
}

// 查询部门树
export const getDeptTree = () => {
  return http.get('/system/user/deptTree')
}

// 查询入住清单报表
export const getCheckInReport = (params) => {
  return http.get('/business/TBaseCheckList/viewReport', params)
}
